﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using Sharp.Platform;
using Sharp.Platform.List;
using Sharp.Platform.Other;

namespace Sharp.WebBooter.Areas.CMS.Models
{
    [Title("日志管理")]
    [DataHandler(ModuleOP.Delete, "删除", 3)]
    [DataHandler(ModuleOP.Refresh, "刷新", 4)]
    public partial class UserLogIndexViewModel : SharpList
    {

        public UserLogIndexViewModel()
        {
            this.Feature = ListFeature.MultiSelect | ListFeature.Paging | ListFeature.RowNumber;

        }

        /// <summary>
        /// 操作内容的描述
        /// </summary>
        [Column(Text = "描述", SearchFor = true)]
        public string Content { get; set; }

        /// <summary>
        /// 操作员姓名
        /// </summary>
        [Column(Text = "操作员姓名",Width = 100)]
        public string FullName { get; set; }
        /// <summary>
        /// 时间
        /// </summary>
        [DateColumn(Text = "时间",Width = 140,Format = "yyyy-MM-dd HH:mm:ss") ]
        public DateTime Eventtime { get; set; }
        /// <summary>
        /// 来源
        /// </summary>
        [Column(Text = "来源", Width = 160)]
        public string InternalSources { get; set; }  
    }
}